import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';

class CalcController extends GetxController {

  RxInt currentIndex = 0.obs;
  void setCurrentIndex(index){
    currentIndex.value = index;
    update();
  }







  var applyMoney = 0.obs; // 贷款总数
  var repaymentMonth = 0.obs;// 还款月数

  var firstMonth = 0.obs; // 首月还款 等额本金
  var decrement = 0.obs; // 每月递减
  var totalMoney1 = 0.obs;  // 等额本金还款总额
  var interest1 = 0.obs; // 等额本金总利息

  var everyMonth = 0.obs; // 每月还款 等额本息
  var totalMoney2 = 0.obs; // 等额本息还款总额
  var interest2 = 0.obs; // 等额本息总利息

  final TextEditingController applyMoneyController = TextEditingController(); // 贷款总额

  @override
  void onInit() {
    super.onInit();
  }

  @override
  void onReady() {
    super.onReady();
  }

  @override
  void onClose() {
    super.onClose();
  }

  /// 开始计算
  calc() {

  }

}
